package com.easy.service;

import com.easy.bean.Department;
import com.easy.util.Page;

import java.util.List;

public interface DepartmentService {
    // 新增科室
    Department add(Department department);

    // 删除科室（软删除）
    int del(Integer id);

    // 编辑科室
    Department edit(Department department);

    // 查询所有科室
    List<Department> all(Department department);

    // 根据ID查询单个科室
    Department one(Integer id);

    // 分页查询科室
    Object page(Page page, Department department);
}